SmartFTP FTP Library
IFTPConnection::DownloadFile Method

Downloads a file.

IDL
HRESULT DownloadFile(
    [in] BSTR remoteFile, 
    [in] BSTR localFile, 
    [in] long startPositionLo, 
    [in] long startPositionHi
);
Parameters

szRemoteFile
The name of the remote file.
szLocalFile
The full path to the local file.
nStartPosLo
The restart position of the remote file (low part).
nStartPosHi
The restart position of the remote file (low part).

The client opens a data connection and requests the file with the RETR command. In case the nStartPosLo/nStartPosHi argument is greater than zero, the client sends a REST command and the file is being resumed from the position specified in the nStartPosLo/nStartPosHi arguments.

What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.